package testing.seperator;

import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

import seperator.PrepSeperator;
import seperator.PuntSeperator;
import words.Preposition;
import words.Punctuation;


public class PuntSeperatorTest {
	PuntSeperator seperator;
	Punctuation punt;
	
	@Before
	public void setUp() throws Exception {
		this.seperator = new PuntSeperator();
		
	}
	
	@Test
	public void test1()
	{
		String[] data = {"The","number","of","population","in","the","city","is","10","-","3","since","the","big","area","."};
		seperator.setdata(data);
		seperator.seperate();
		punt = seperator.getPunt();
		int result = punt.getStringArray().length;
		assertEquals(result,2);
	}
	@Test
	public void test2()
	{
		String[] data = {"The","number","of","population","in","the","city","is","10","3","since","the","big","area"};
		seperator.setdata(data);
		seperator.seperate();
		punt = seperator.getPunt();
		int result = punt.getStringArray().length;
		assertEquals(result,0);
	}
	@Test
	public void test3()
	{
		String[] data = {"The","number","of","population","in","the","city","is","10","3","since","the","big","area",".","."};
		seperator.setdata(data);
		seperator.seperate();
		punt = seperator.getPunt();
		int result = punt.getStringArray().length;
		assertEquals(result,2);
	}
	@Test
	public void test4()
	{
		String[] data = {"The","number","of","population","in","the","city","is","10","3","since","the","big","area","-","."};
		seperator.setdata(data);
		seperator.seperate();
		punt = seperator.getPunt();
		int result = punt.getStringArray().length;
		assertEquals(result,2);
	}
	
}
